<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html dir="ltr" xmlns="http://www.w3.org/1999/xhtml">
<%@include file="/WEB-INF/taglibs/common/taglibs.jsp"%>

<head>
<title><spring:message code="admin.editrole.title" /></title>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<link rel="stylesheet" href="<c:url value="/css/styles.css"/>" />
<script src="<c:url value="/javascripts/common.js"/>" type="text/javascript"></script>
<script language="javascript" type="text/javascript">
// script added by Umme Essa. The form should be validated on all operations.
	 function validateForm(){
		return (validate_required(document.getElementById("name"),'Please enter role name.'));
	 }	
		 
	 </script>
</head>

<body><%@include file="../top_menu.jsp"%>
<%@include file="/WEB-INF/jsp/include/header.jsp"%>
<table width=100%>
	<tr>
		<td><%@include file="/WEB-INF/jsp/menu/admin_role_menu.jsp"%>
		<br />
		</td>
	</tr>	<tr>
		<td><%@include file="/WEB-INF/jsp/include/messages.jsp"%>
		<br />
		</td>
	</tr>
</table>
<form:form commandName="role" method="post">
	<table width=70% class="formTable">

		<tr class="formHeader">
			<td colspan="5"><spring:message code="admin.editrole.label.editrole" /></td>
		</tr>
		<tr bgcolor="#FFFFFF">
			<td width="18%"><spring:message code="admin.editrole.label.rolename" /></td>
			<td width="80%"><form:input path="name" size="30"
				readonly="false" /></td>
		</tr>

		<tr bgcolor="#FFFFFF">
			<td width="18%"><spring:message code="admin.editrole.label.description" /></td>
			<td width="80%"><form:input path="description" size="30"
				readonly="false" /></td>
		</tr>

		<tr bgcolor="#FFFFFF">
			<td width="18%"><spring:message code="admin.editrole.label.status" /></td>
			<td width="80%"><form:checkbox path="active" /></td>
		</tr>


		<tr bgcolor="#FFFFFF">
			<td width="18%"><spring:message code="admin.editrole.label.comments" /></td>
			<td width="80%"><form:input path="comments" size="30"
				readonly="false" /></td>
		</tr>
		<tr>
			<td><input type="submit" class='ui-button ui-state-default ui-corner-all' value="<spring:message code="admin.editrole.button.updaterole" />" /></td>
		</tr>
	</table>



</form:form><%@include file="/WEB-INF/jsp/include/footer.jsp"%>
</body>
</html>